package com.designpatterns.abstractfactory.concretefactory;

import com.designpatterns.abstractfactory.IAnimalFactory;
import com.designpatterns.abstractfactory.abstractproduct.ICat;
import com.designpatterns.abstractfactory.abstractproduct.IDog;
import com.designpatterns.abstractfactory.concreteproduct.WhiteCat;
import com.designpatterns.abstractfactory.concreteproduct.WhiteDog;

/**
 * WhiteAnimal Factory Implements IAnimalFactory
 * 
 * @author Haiqi.Wang
 * @since 2013-5-30下午1:55:08
 */
public class WhiteAnimalFactory implements IAnimalFactory {

	@Override
	public ICat createCat() {
		return new WhiteCat();
	}

	@Override
	public IDog createDog() {
		return new WhiteDog();
	}

}
